commit 20944bd629145d1afd8f8c64f3d12fe207f87684
Author: Juan Fernando Jaimes Zuluaga <jjaimes@fuga.gov.co>
Date:   Wed Feb 11 16:32:01 2026 -0500

    Ajuste informe plan de contratacion CDP

diff --git a/app/Modulos/Presupuesto/Informe/Repository/InformeRepository.php b/app/Modulos/Presupuesto/Informe/Repository/InformeRepository.php
index d4ff966c4..564cfccb8 100644
--- a/app/Modulos/Presupuesto/Informe/Repository/InformeRepository.php
+++ b/app/Modulos/Presupuesto/Informe/Repository/InformeRepository.php
@@ -3,6 +3,7 @@
 namespace App\Modulos\Presupuesto\Informe\Repository;
 
 
+use App\Modulos\Presupuesto\Informe\Repository\InformeInterface;
 use App\Modulos\Presupuesto\Informe\Repository\InformeInterface;
 use Illuminate\Support\Facades\Cache;
 use Illuminate\Support\Collection;
@@ -4421,7 +4422,6 @@ class InformeRepository implements InformeInterface
 
     public function excel_fuentes_conceptos_anual_cdp_v2($request, $var)
     {
-
         $data = RegistroPresupuestal::with('planes_de_accion', 'proyecto', 'productoMGA');
 
         if (isset($request['i_proyecto'])) {
@@ -4604,10 +4604,11 @@ class InformeRepository implements InformeInterface
                         }
 
                         if (count($dataRp) > 0) {
+                            $esPrimeraFilaCdpFuncionamiento = true;
                             foreach ($dataRp as $key => $value) {
 
                                 $count++;
-                                $file->sheet(0, function ($sheet) use ($plan_anual, $incremantal, $count, $dataCdp, $dataRp, $solictud_Cdp, $techoRubro, $value, $id_anualizacion) {
+                                $file->sheet(0, function ($sheet) use ($plan_anual, $incremantal, $count, $dataCdp, $dataRp, $solictud_Cdp, $techoRubro, $value, $id_anualizacion, $esPrimeraFilaCdpFuncionamiento) {
 
                                     $nums_crp = '';
                                     $estados_crp = '';
@@ -4627,11 +4628,29 @@ class InformeRepository implements InformeInterface
                                     $numeroCdp = (isset($dataCdp) && isset($dataCdp->vc_no_cdp)) ? $dataCdp->vc_no_cdp : '';
                                     $valorEstimado = (isset($plan_anual)) ? $plan_anual['i_valor_vigencia_actual'] : '';
                                     $valorCdp = (isset($dataCdp) && isset($dataCdp->i_valor)) ? $dataCdp->i_valor : '';
-                                    $valorComprometer = (isset($dataCdp) && isset($dataCdp->i_cdp_x_comprometer)) ? $dataCdp->i_cdp_x_comprometer : '';;
-                                    if (in_array($numeroCdp, $cdpsProcesados)) {
+                                    $valorComprometer = (isset($dataCdp) && isset($dataCdp->i_cdp_x_comprometer)) ? $dataCdp->i_cdp_x_comprometer : '';
+                                    $anulacionesCdp = (isset($dataCdp) && isset($dataCdp->i_anulaciones)) ? $dataCdp->i_anulaciones : '';
+                                    $reintegrosCdp = (isset($dataCdp) && isset($dataCdp->i_reintegros)) ? $dataCdp->i_reintegros : '';
+
+                                    $valorNetoCdp = 0;
+                                    if ($dataCdp && $esPrimeraFilaCdpFuncionamiento) {
+                                        $valorNetoCdp = ($valorCdp ? $valorCdp : 0) - ($anulacionesCdp ? $anulacionesCdp : 0) + ($reintegrosCdp ? $reintegrosCdp : 0);
+                                    }
+
+                                    if (!$esPrimeraFilaCdpFuncionamiento) {
                                         $valorEstimado = 0;
                                         $valorCdp = 0;
                                         $valorComprometer = 0;
+                                        $anulacionesCdp = 0;
+                                        $reintegrosCdp = 0;
+                                        $valorNetoCdp = 0;
+                                    } elseif (in_array($numeroCdp, $cdpsProcesados)) {
+                                        $valorEstimado = 0;
+                                        $valorCdp = 0;
+                                        $valorComprometer = 0;
+                                        $anulacionesCdp = 0;
+                                        $reintegrosCdp = 0;
+                                        $valorNetoCdp = 0;
                                     } else {
                                         $cdpsProcesados[] = $numeroCdp;
                                     }
@@ -4879,25 +4898,19 @@ class InformeRepository implements InformeInterface
                                     });
 
                                     // Anulaciones
-                                    $sheet->cell('AO' . $incremantal, function ($cell) use ($dataCdp) {
-                                        $dato = '';
-                                        if ($dataCdp) {
-                                            $dato = (isset($dataCdp->i_anulaciones)) ? $dataCdp->i_anulaciones : '';
-                                        }
-                                        $cell->setValue($dato);
+                                    $sheet->cell('AO' . $incremantal, function ($cell) use ($anulacionesCdp) {
+                                        $cell->setValue($anulacionesCdp);
                                     });
 
-                                    //Reintegros
-                                    $sheet->cell('AP' . $incremantal, function ($cell) use ($dataCdp) {
-                                        $dato = '';
-                                        if ($dataCdp) {
-                                            $dato = (isset($dataCdp->i_reintegros)) ? $dataCdp->i_reintegros : '';
-                                        }
-                                        $cell->setValue($dato);
+                                    $sheet->cell('AP' . $incremantal, function ($cell) use ($reintegrosCdp) {
+                                        $cell->setValue($reintegrosCdp);
                                     });
 
-                                    // Estado CDP
-                                    $sheet->cell('AQ' . $incremantal, function ($cell) use ($dataCdp, $valorComprometer) {
+                                    $sheet->cell('AQ' . $incremantal, function ($cell) use ($valorNetoCdp) {
+                                        $cell->setValue($valorNetoCdp);
+                                    });
+
+                                    $sheet->cell('AR' . $incremantal, function ($cell) use ($dataCdp, $valorComprometer) {
                                         $dato = '';
                                         if ($dataCdp) {
                                             //$dato = (isset($dataCdp->i_cdp_x_comprometer)) ? $dataCdp->i_cdp_x_comprometer : '';
@@ -4908,8 +4921,7 @@ class InformeRepository implements InformeInterface
 
                                     });
 
-                                    // Fecha registroCDP
-                                    $sheet->cell('AR' . $incremantal, function ($cell) use ($dataCdp) {
+                                    $sheet->cell('AS' . $incremantal, function ($cell) use ($dataCdp) {
                                         $dato = '';
                                         if ($dataCdp) {
                                             $dato = (isset($dataCdp->dt_fecha_registro)) ? $dataCdp->dt_fecha_registro : '';
@@ -4917,54 +4929,44 @@ class InformeRepository implements InformeInterface
                                         $cell->setValue($dato);
                                     });
 
-                                    // Num CRP
-                                    $sheet->cell('AS' . $incremantal, function ($cell) use ($nums_crp) {
+                                    $sheet->cell('AT' . $incremantal, function ($cell) use ($nums_crp) {
 
                                         $cell->setValue($nums_crp);
                                     });
 
-                                    // valor_crp RP
-                                    $sheet->cell('AT' . $incremantal, function ($cell) use ($valor_crp) {
+                                    $sheet->cell('AU' . $incremantal, function ($cell) use ($valor_crp) {
                                         $cell->setValue($valor_crp);
                                     });
 
-                                    // fecha
-                                    $sheet->cell('AU' . $incremantal, function ($cell) use ($fecha_registro_crp) {
+                                    $sheet->cell('AV' . $incremantal, function ($cell) use ($fecha_registro_crp) {
                                         $cell->setValue($fecha_registro_crp);
                                     });
 
-                                    // anulacion_crp
-                                    $sheet->cell('AV' . $incremantal, function ($cell) use ($anulacion_crp) {
+                                    $sheet->cell('AW' . $incremantal, function ($cell) use ($anulacion_crp) {
                                         $cell->setValue($anulacion_crp);
                                     });
 
-                                    // reintegros_crp
-                                    $sheet->cell('AW' . $incremantal, function ($cell) use ($reintegros_crp) {
+                                    $sheet->cell('AX' . $incremantal, function ($cell) use ($reintegros_crp) {
                                         $cell->setValue($reintegros_crp);
                                     });
 
-                                    // valor_neto_crp
-                                    $sheet->cell('AX' . $incremantal, function ($cell) use ($valor_neto_crp) {
+                                    $sheet->cell('AY' . $incremantal, function ($cell) use ($valor_neto_crp) {
                                         $cell->setValue($valor_neto_crp);
                                     });
 
-                                    // valor_neto_crp
-                                    $sheet->cell('AY' . $incremantal, function ($cell) use ($autorizacion_giro_crp) {
+                                    $sheet->cell('AZ' . $incremantal, function ($cell) use ($autorizacion_giro_crp) {
                                         $cell->setValue($autorizacion_giro_crp);
                                     });
 
-                                    // com_sin_aut_giro_crp
-                                    $sheet->cell('AZ' . $incremantal, function ($cell) use ($com_sin_aut_giro_crp) {
+                                    $sheet->cell('BA' . $incremantal, function ($cell) use ($com_sin_aut_giro_crp) {
                                         $cell->setValue($com_sin_aut_giro_crp);
                                     });
 
-                                    //POLITICA
-                                    $sheet->cell('BA' . $incremantal, function ($cell) {
+                                    $sheet->cell('BB' . $incremantal, function ($cell) {
                                         $cell->setValue('N/A');
                                     });
 
-                                    // fecha Usuario aprobador
-                                    $sheet->cell('BB' . $incremantal, function ($cell) use ($plan_anual) {
+                                    $sheet->cell('BC' . $incremantal, function ($cell) use ($plan_anual) {
                                         $fecha = '';
                                         if ($plan_anual->aprobaciones->where('i_fk_id_tipo_usuario', 37)->count() > 0)
                                             $fecha = $plan_anual->aprobaciones->where('i_fk_id_tipo_usuario', 37)->sortByDesc('created_at')->first()->created_at;
@@ -4972,8 +4974,7 @@ class InformeRepository implements InformeInterface
                                         $cell->setValue($fecha);
                                     });
 
-                                    // Nombre aprobado
-                                    $sheet->cell('BC' . $incremantal, function ($cell) use ($plan_anual) {
+                                    $sheet->cell('BD' . $incremantal, function ($cell) use ($plan_anual) {
                                         $nombre = '';
                                         if ($plan_anual->aprobaciones->where('i_fk_id_tipo_usuario', 37)->count() > 0)
                                             $nombre = $plan_anual->aprobaciones->where('i_fk_id_tipo_usuario', 37)->sortByDesc('created_at')->first()->usuario->full_name;
@@ -4981,8 +4982,7 @@ class InformeRepository implements InformeInterface
                                         $cell->setValue($nombre);
                                     });
 
-                                    // Nombre aprobado
-                                    $sheet->cell('BD' . $incremantal, function ($cell) use ($plan_anual) {
+                                    $sheet->cell('BE' . $incremantal, function ($cell) use ($plan_anual) {
                                         $cell->setBackground('#DEFCA8');
                                         $estado = 'Aprobado';
 
@@ -4994,9 +4994,6 @@ class InformeRepository implements InformeInterface
                                         $cell->setValue($estado);
                                     });
 
-                                    $sheet->cell('BE' . $incremantal, function ($cell) use ($techoRubro) {
-                                        $cell->setValue('N/A');
-                                    });
                                     $sheet->cell('BF' . $incremantal, function ($cell) use ($techoRubro) {
                                         $cell->setValue('N/A');
                                     });
@@ -5042,21 +5039,21 @@ class InformeRepository implements InformeInterface
                                     $sheet->cell('BT' . $incremantal, function ($cell) use ($techoRubro) {
                                         $cell->setValue('N/A');
                                     });
+                                    $sheet->cell('BU' . $incremantal, function ($cell) use ($techoRubro) {
+                                        $cell->setValue('N/A');
+                                    });
 
-                                    // Beneficiario
-                                    $sheet->cell('BU' . $incremantal, function ($cell) use ($beneficiario) {
+                                    $sheet->cell('BV' . $incremantal, function ($cell) use ($beneficiario) {
                                         $cell->setValue(($beneficiario) ? $beneficiario : '');
                                     });
-                                    //identificacion Beneficiario
-                                    $sheet->cell('BV' . $incremantal, function ($cell) use ($doc_beneficiario) {
+
+                                    $sheet->cell('BW' . $incremantal, function ($cell) use ($doc_beneficiario) {
                                         $cell->setValue(($doc_beneficiario) ? $doc_beneficiario : '');
                                     });
 
-                                    //num contrato
-
                                     if ($id_anualizacion > 1) {
 
-                                        $sheet->cell('BW' . $incremantal, function ($cell) use ($num_contrato) {
+                                        $sheet->cell('BX' . $incremantal, function ($cell) use ($num_contrato) {
 
                                             $cell->setValue(($num_contrato) ? $num_contrato : '');
 
@@ -5065,8 +5062,7 @@ class InformeRepository implements InformeInterface
                                     }
 
 
-                                    // estado solictud CDP
-                                    $sheet->cell('BX' . $incremantal, function ($cell) use ($plan_anual) {
+                                    $sheet->cell('BY' . $incremantal, function ($cell) use ($plan_anual) {
 
                                         $cell->setBackground('#DEFCA8');
                                         $estado = 'Generado';
@@ -5080,6 +5076,7 @@ class InformeRepository implements InformeInterface
                                     });
 
                                 });
+                                $esPrimeraFilaCdpFuncionamiento = false;
                                 $incremantal++;
                             }
                         }
@@ -6469,24 +6466,26 @@ class InformeRepository implements InformeInterface
     {
 
         $cdpsProcesados = [];
+        $esPrimeraFilaCdp = true;
 
         if (count($dataRp) > 0) {
             foreach ($dataRp as $key => $value) {
-                $this->pintar_filas_2021($file, $proyecto, $plan_accion, $plan_anual, $incremantal, $count, $dataCdp, $dataRp, $data_estrategica, $solictud_Cdp, $id_anualizacion, $obj_general, $value, $cdpsProcesados, $isNewVersion);
+                $this->pintar_filas_2021($file, $proyecto, $plan_accion, $plan_anual, $incremantal, $count, $dataCdp, $dataRp, $data_estrategica, $solictud_Cdp, $id_anualizacion, $obj_general, $value, $cdpsProcesados, $isNewVersion, $esPrimeraFilaCdp);
+                $esPrimeraFilaCdp = false;
                 $incremantal++;
             }
         } else {
-            $this->pintar_filas_2021($file, $proyecto, $plan_accion, $plan_anual, $incremantal, $count, $dataCdp, $dataRp, $data_estrategica, $solictud_Cdp, $id_anualizacion, $obj_general, null, $cdpsProcesados, $isNewVersion);
+            $this->pintar_filas_2021($file, $proyecto, $plan_accion, $plan_anual, $incremantal, $count, $dataCdp, $dataRp, $data_estrategica, $solictud_Cdp, $id_anualizacion, $obj_general, null, $cdpsProcesados, $isNewVersion, $esPrimeraFilaCdp);
             $incremantal++;
         }
 
         return $incremantal;
     }
 
-    private function pintar_filas_2021($file, $proyecto, $plan_accion, $plan_anual, $incremantal, $count, $dataCdp, $dataRp, $data_estrategica, $solictud_Cdp, $id_anualizacion, $obj_general, $value, &$cdpsProcesados, $isNewVersion = false)
+    private function pintar_filas_2021($file, $proyecto, $plan_accion, $plan_anual, $incremantal, $count, $dataCdp, $dataRp, $data_estrategica, $solictud_Cdp, $id_anualizacion, $obj_general, $value, &$cdpsProcesados, $isNewVersion = false, $esPrimeraFilaCdp = true)
     {
 
-        $file->sheet(0, function ($sheet) use ($proyecto, $plan_accion, $plan_anual, $incremantal, $count, $dataCdp, $dataRp, $data_estrategica, $solictud_Cdp, $id_anualizacion, $obj_general, $value, &$cdpsProcesados, $isNewVersion) {
+        $file->sheet(0, function ($sheet) use ($proyecto, $plan_accion, $plan_anual, $incremantal, $count, $dataCdp, $dataRp, $data_estrategica, $solictud_Cdp, $id_anualizacion, $obj_general, $value, &$cdpsProcesados, $isNewVersion, $esPrimeraFilaCdp) {
 
             $obligaciones = json_decode($plan_anual->tx_obligaciones);
 
@@ -6508,10 +6507,28 @@ class InformeRepository implements InformeInterface
             $valorEstimado = (isset($plan_anual)) ? $plan_anual['i_valor_vigencia_actual'] : '';
             $valorCdp = (isset($dataCdp) && isset($dataCdp->i_valor)) ? $dataCdp->i_valor : '';
             $valorComprometer = (isset($dataCdp) && isset($dataCdp->i_cdp_x_comprometer)) ? $dataCdp->i_cdp_x_comprometer : '';
-            if (in_array($numeroCdp, $cdpsProcesados)) {
+            $anulacionesCdp = (isset($dataCdp) && isset($dataCdp->i_anulaciones)) ? $dataCdp->i_anulaciones : '';
+            $reintegrosCdp = (isset($dataCdp) && isset($dataCdp->i_reintegros)) ? $dataCdp->i_reintegros : '';
+
+            $valorNetoCdp = 0;
+            if ($dataCdp && $esPrimeraFilaCdp) {
+                $valorNetoCdp = ($valorCdp ? $valorCdp : 0) - ($anulacionesCdp ? $anulacionesCdp : 0) + ($reintegrosCdp ? $reintegrosCdp : 0);
+            }
+
+            if (!$esPrimeraFilaCdp) {
+                $valorEstimado = 0;
+                $valorCdp = 0;
+                $valorComprometer = 0;
+                $anulacionesCdp = 0;
+                $reintegrosCdp = 0;
+                $valorNetoCdp = 0;
+            } elseif (in_array($numeroCdp, $cdpsProcesados)) {
                 $valorEstimado = 0;
                 $valorCdp = 0;
                 $valorComprometer = 0;
+                $anulacionesCdp = 0;
+                $reintegrosCdp = 0;
+                $valorNetoCdp = 0;
             } else {
                 $cdpsProcesados[] = $numeroCdp;
             }
@@ -6822,15 +6839,8 @@ class InformeRepository implements InformeInterface
             }
             if ($id_anualizacion > 1 || $isNewVersion) {
                 // Anulaciones
-                $sheet->cell('AO' . $incremantal, function ($cell) use ($dataCdp, $id_anualizacion, $isNewVersion) {
-                    $dato = '';
-                    if ($dataCdp) {
-                        if ($id_anualizacion > 2 || $isNewVersion)
-                            $dato = (isset($dataCdp->i_anulaciones)) ? $dataCdp->i_anulaciones : '';
-                        else
-                            $dato = (isset($dataCdp->anulaciones)) ? $dataCdp->anulaciones : '';
-                    }
-                    $cell->setValue($dato);
+                $sheet->cell('AO' . $incremantal, function ($cell) use ($anulacionesCdp) {
+                    $cell->setValue($anulacionesCdp);
                 });
             } else {
                 // Num cdp
@@ -6844,16 +6854,12 @@ class InformeRepository implements InformeInterface
             }
             // Estado CDP
             if ($id_anualizacion > 1 || $isNewVersion) {
-                //Reintegros
-                $sheet->cell('AP' . $incremantal, function ($cell) use ($dataCdp, $id_anualizacion, $isNewVersion) {
-                    $dato = '';
-                    if ($dataCdp) {
-                        if ($id_anualizacion > 2 || $isNewVersion)
-                            $dato = (isset($dataCdp->i_reintegros)) ? $dataCdp->i_reintegros : '';
-                        else
-                            $dato = (isset($dataCdp->reintegros)) ? $dataCdp->reintegros : '';
-                    }
-                    $cell->setValue($dato);
+                $sheet->cell('AP' . $incremantal, function ($cell) use ($reintegrosCdp) {
+                    $cell->setValue($reintegrosCdp);
+                });
+
+                $sheet->cell('AQ' . $incremantal, function ($cell) use ($valorNetoCdp) {
+                    $cell->setValue($valorNetoCdp);
                 });
             } else {
                 $sheet->cell('AM' . $incremantal, function ($cell) use ($dataCdp) {
@@ -6865,21 +6871,18 @@ class InformeRepository implements InformeInterface
 
                 });
             }
-            $sheet->cell('AQ' . $incremantal, function ($cell) use ($dataCdp, $id_anualizacion, $isNewVersion, $valorComprometer) {
+            $sheet->cell('AR' . $incremantal, function ($cell) use ($dataCdp, $id_anualizacion, $isNewVersion, $valorComprometer) {
                 $dato = '';
                 if ($dataCdp) {
                     if ($id_anualizacion > 2 || $isNewVersion)
-                        //$dato = (isset($dataCdp->i_cdp_x_comprometer)) ? $dataCdp->i_cdp_x_comprometer : '';
                         $dato = $valorComprometer;
                     else
-                        //$dato = (isset($dataCdp->cdp_x_comprometer)) ? $dataCdp->cdp_x_comprometer : '';
                         $dato = $valorComprometer;
                 }
 
                 $cell->setValue($dato);
             });
-            // Fecha registroCDP
-            $sheet->cell('AR' . $incremantal, function ($cell) use ($dataCdp, $id_anualizacion, $isNewVersion) {
+            $sheet->cell('AS' . $incremantal, function ($cell) use ($dataCdp, $id_anualizacion, $isNewVersion) {
                 $dato = '';
                 if ($dataCdp) {
                     if ($id_anualizacion > 2 || $isNewVersion)
@@ -6890,8 +6893,8 @@ class InformeRepository implements InformeInterface
                 $cell->setValue($dato);
             });
             if ($id_anualizacion > 1 || $isNewVersion) {
-                // Num CRP
-                $sheet->cell('AS' . $incremantal, function ($cell) use ($nums_crp) {
+                // Num CRP (antes AS, ahora AT)
+                $sheet->cell('AT' . $incremantal, function ($cell) use ($nums_crp) {
                     $cell->setValue($nums_crp);
                 });
             } else {
@@ -6900,13 +6903,13 @@ class InformeRepository implements InformeInterface
                     $cell->setValue($estados_crp);
                 });
             }
-            // fecha_registro_crp valor_crp RP
-            $sheet->cell('AT' . $incremantal, function ($cell) use ($valor_crp) {
+            // valor_crp RP (antes AT, ahora AU)
+            $sheet->cell('AU' . $incremantal, function ($cell) use ($valor_crp) {
                 $cell->setValue($valor_crp);
             });
             if ($id_anualizacion > 1 || $isNewVersion) {
-                // valor_crp RP
-                $sheet->cell('AU' . $incremantal, function ($cell) use ($fecha_registro_crp) {
+                // fecha_registro_crp (antes AU, ahora AV)
+                $sheet->cell('AV' . $incremantal, function ($cell) use ($fecha_registro_crp) {
                     $cell->setValue($fecha_registro_crp);
                 });
             } else {
@@ -6917,8 +6920,8 @@ class InformeRepository implements InformeInterface
 
             }
             if ($id_anualizacion > 1 || $isNewVersion) {
-                // anulacion_crp
-                $sheet->cell('AV' . $incremantal, function ($cell) use ($anulacion_crp) {
+                // anulacion_crp (antes AV, ahora AW)
+                $sheet->cell('AW' . $incremantal, function ($cell) use ($anulacion_crp) {
                     $cell->setValue($anulacion_crp);
                 });
             } else {
@@ -6932,8 +6935,8 @@ class InformeRepository implements InformeInterface
                 });
             }
             if ($id_anualizacion > 1 || $isNewVersion) {
-                // reintegros_crp
-                $sheet->cell('AW' . $incremantal, function ($cell) use ($reintegros_crp) {
+                // reintegros_crp (antes AW, ahora AX)
+                $sheet->cell('AX' . $incremantal, function ($cell) use ($reintegros_crp) {
                     $cell->setValue($reintegros_crp);
                 });
             } else {
@@ -6948,8 +6951,8 @@ class InformeRepository implements InformeInterface
             }
 
             if ($id_anualizacion > 1 || $isNewVersion) {
-                // valor_neto_crp
-                $sheet->cell('AX' . $incremantal, function ($cell) use ($valor_neto_crp) {
+                // valor_neto_crp (antes AX, ahora AY)
+                $sheet->cell('AY' . $incremantal, function ($cell) use ($valor_neto_crp) {
                     $cell->setValue($valor_neto_crp);
                 });
             } else {
@@ -6966,8 +6969,8 @@ class InformeRepository implements InformeInterface
                 });
             }
             if ($id_anualizacion > 1 || $isNewVersion) {
-                // valor_neto_crp
-                $sheet->cell('AY' . $incremantal, function ($cell) use ($autorizacion_giro_crp) {
+                // autorizacion_giro_crp (antes AY, ahora AZ)
+                $sheet->cell('AZ' . $incremantal, function ($cell) use ($autorizacion_giro_crp) {
                     $cell->setValue($autorizacion_giro_crp);
                 });
             } else {
@@ -6977,8 +6980,8 @@ class InformeRepository implements InformeInterface
                 });
             }
             if ($id_anualizacion > 1 || $isNewVersion) {
-                // com_sin_aut_giro_crp
-                $sheet->cell('AZ' . $incremantal, function ($cell) use ($com_sin_aut_giro_crp) {
+                // com_sin_aut_giro_crp (antes AZ, ahora BA)
+                $sheet->cell('BA' . $incremantal, function ($cell) use ($com_sin_aut_giro_crp) {
                     $cell->setValue($com_sin_aut_giro_crp);
                 });
             } else {
@@ -6989,8 +6992,8 @@ class InformeRepository implements InformeInterface
             }
 
             if ($id_anualizacion > 1 || $isNewVersion) {
-                // politica
-                $sheet->cell('BA' . $incremantal, function ($cell) use ($plan_anual) {
+                // politica (antes BA, ahora BB)
+                $sheet->cell('BB' . $incremantal, function ($cell) use ($plan_anual) {
                     $cell->setValue($plan_anual->politica['vc_parametro_detalle']);
                 });
 
@@ -7003,8 +7006,8 @@ class InformeRepository implements InformeInterface
 
             if ($id_anualizacion > 1 || $isNewVersion) {
 
-                // com_sin_aut_giro_crp
-                $sheet->cell('BB' . $incremantal, function ($cell) use ($plan_anual) {
+                // Fecha aprobación (antes BB, ahora BC)
+                $sheet->cell('BC' . $incremantal, function ($cell) use ($plan_anual) {
                     $fecha = '';
                     if ($plan_anual->aprobaciones->where('i_fk_id_tipo_usuario', 31)->count() > 0)
                         $fecha = $plan_anual->aprobaciones->where('i_fk_id_tipo_usuario', 31)->sortByDesc('created_at')->first()->created_at;
@@ -7022,8 +7025,8 @@ class InformeRepository implements InformeInterface
 
             if ($id_anualizacion > 1 || $isNewVersion) {
 
-                // Nombre aprobado
-                $sheet->cell('BC' . $incremantal, function ($cell) use ($plan_anual) {
+                // Nombre aprobado (antes BC, ahora BD)
+                $sheet->cell('BD' . $incremantal, function ($cell) use ($plan_anual) {
                     $nombre = '';
                     if ($plan_anual->aprobaciones->where('i_fk_id_tipo_usuario', 31)->count() > 0)
                         $nombre = $plan_anual->aprobaciones->where('i_fk_id_tipo_usuario', 31)->sortByDesc('created_at')->first()->usuario->full_name;
@@ -7037,9 +7040,9 @@ class InformeRepository implements InformeInterface
                     $cell->setValue(($obj_general) ? $obj_general : '');
                 });
             }
-            // Nombre aprobado
+            // Estado aprobación (antes BD, ahora BE)
             if ($id_anualizacion > 1 || $isNewVersion) {
-                $sheet->cell('BD' . $incremantal, function ($cell) use ($plan_anual) {
+                $sheet->cell('BE' . $incremantal, function ($cell) use ($plan_anual) {
                     $cell->setBackground('#DEFCA8');
                     $estado = 'Aprobado';
 
@@ -7051,10 +7054,10 @@ class InformeRepository implements InformeInterface
                     $cell->setValue($estado);
                 });
             }
-            // Actividad
+            // Actividad (antes BE, ahora BF)
             if ($id_anualizacion > 1 || $isNewVersion) {
                 // Actividad
-                $sheet->cell('BE' . $incremantal, function ($cell) use ($data_estrategica, $isNewVersion, $proyecto) {
+                $sheet->cell('BF' . $incremantal, function ($cell) use ($data_estrategica, $isNewVersion, $proyecto) {
                     if ($isNewVersion) {
                         $actividad = $proyecto->meta['vc_nombre'];
                     } else {
@@ -7063,10 +7066,10 @@ class InformeRepository implements InformeInterface
                     $cell->setValue($actividad);
                 });
             }
-            // Producto
+            // Producto (antes BF, ahora BG)
             if ($id_anualizacion > 1 || $isNewVersion) {
                 // Producto
-                $sheet->cell('BF' . $incremantal, function ($cell) use ($data_estrategica, $isNewVersion, $plan_accion) {
+                $sheet->cell('BG' . $incremantal, function ($cell) use ($data_estrategica, $isNewVersion, $plan_accion) {
                     if ($isNewVersion) {
                         $mga = $plan_accion->presupuesto->productoMGA->vc_codigo;
                     } else {
@@ -7076,10 +7079,10 @@ class InformeRepository implements InformeInterface
                     $cell->setValue($mga);
                 });
             }
-            // componente
+            // componente (antes BG, ahora BH)
             if ($id_anualizacion > 1 || $isNewVersion) {
                 // Componente
-                $sheet->cell('BG' . $incremantal, function ($cell) use ($data_estrategica, $isNewVersion) {
+                $sheet->cell('BH' . $incremantal, function ($cell) use ($data_estrategica, $isNewVersion) {
                     if ($isNewVersion) {
                         $componente = '';
                     } else {
@@ -7088,10 +7091,10 @@ class InformeRepository implements InformeInterface
                     $cell->setValue($componente);
                 });
             }
-            // Objetivo especifico
+            // Objetivo especifico (antes BH, ahora BI)
             if ($id_anualizacion > 1 || $isNewVersion) {
                 // Objetivo especifico
-                $sheet->cell('BH' . $incremantal, function ($cell) use ($data_estrategica, $isNewVersion, $proyecto) {
+                $sheet->cell('BI' . $incremantal, function ($cell) use ($data_estrategica, $isNewVersion, $proyecto) {
                     if ($isNewVersion) {
                         $objetivo = $proyecto->proyecto->productos[0]->objetivo->tx_objetivo_especifico;
                     } else {
@@ -7100,101 +7103,101 @@ class InformeRepository implements InformeInterface
                     $cell->setValue($objetivo);
                 });
             }
-            // Objetivo generalo
+            // Objetivo general (antes BI, ahora BJ)
             if ($id_anualizacion > 1 || $isNewVersion) {
                 // Objetivo general
-                $sheet->cell('BI' . $incremantal, function ($cell) use ($obj_general) {
+                $sheet->cell('BJ' . $incremantal, function ($cell) use ($obj_general) {
                     $cell->setValue(($obj_general) ? $obj_general : '');
                 });
             }
-            // Num convenio
+            // Num convenio (antes BJ, ahora BK)
             if ($id_anualizacion > 1 || $isNewVersion) {
-                $sheet->cell('BJ' . $incremantal, function ($cell) use ($plan_anual) {
+                $sheet->cell('BK' . $incremantal, function ($cell) use ($plan_anual) {
                     $cell->setValue(($plan_anual) ? $plan_anual->vc_num_convenio : '');
                 });
             }
-            // convenio
+            // convenio (antes BK, ahora BL)
             if ($id_anualizacion > 1 || $isNewVersion) {
-                $sheet->cell('BK' . $incremantal, function ($cell) use ($plan_anual) {
+                $sheet->cell('BL' . $incremantal, function ($cell) use ($plan_anual) {
                     $cell->setValue(($plan_anual) ? $plan_anual->vc_convenio : '');
                 });
             }
-            //Bipin
+            //Bipin (antes BL, ahora BM)
             if ($id_anualizacion > 1 || $isNewVersion) {
-                $sheet->cell('BL' . $incremantal, function ($cell) use ($plan_anual) {
+                $sheet->cell('BM' . $incremantal, function ($cell) use ($plan_anual) {
                     $cell->setValue(($plan_anual) ? $plan_anual->vc_bipim : '');
                 });
             }
-            // cod _grupo
+            // cod _grupo (antes BM, ahora BN)
             if ($id_anualizacion > 1 || $isNewVersion) {
 
-                $sheet->cell('BM' . $incremantal, function ($cell) use ($proyecto) {
+                $sheet->cell('BN' . $incremantal, function ($cell) use ($proyecto) {
                     $cell->setValue($proyecto->proyecto->dane['vc_codigo_grupo']);
                 });
             }
-            // GRUPO
+            // GRUPO (antes BN, ahora BO)
             if ($id_anualizacion > 1 || $isNewVersion) {
-                $sheet->cell('BN' . $incremantal, function ($cell) use ($proyecto) {
+                $sheet->cell('BO' . $incremantal, function ($cell) use ($proyecto) {
                     $cell->setValue($proyecto->proyecto->dane['tx_grupo']);
                 });
             }
-            // cod clase
+            // cod clase (antes BO, ahora BP)
             if ($id_anualizacion > 1 || $isNewVersion) {
-                $sheet->cell('BO' . $incremantal, function ($cell) use ($proyecto) {
+                $sheet->cell('BP' . $incremantal, function ($cell) use ($proyecto) {
                     $cell->setValue($proyecto->proyecto->dane['vc_codigo_clase']);
                 });
             }
-            // clase
+            // clase (antes BP, ahora BQ)
             if ($id_anualizacion > 1 || $isNewVersion) {
-                $sheet->cell('BP' . $incremantal, function ($cell) use ($proyecto) {
+                $sheet->cell('BQ' . $incremantal, function ($cell) use ($proyecto) {
                     $cell->setValue($proyecto->proyecto->dane['tx_clase']);
                 });
             }
-            // cod subclase dabe
+            // cod subclase dabe (antes BQ, ahora BR)
             if ($id_anualizacion > 1 || $isNewVersion) {
-                $sheet->cell('BQ' . $incremantal, function ($cell) use ($proyecto) {
+                $sheet->cell('BR' . $incremantal, function ($cell) use ($proyecto) {
                     $cell->setValue($proyecto->proyecto->dane['vc_codigo_subclase']);
                 });
             }
-            //subclase dabe
+            //subclase dabe (antes BR, ahora BS)
             if ($id_anualizacion > 1 || $isNewVersion) {
-                $sheet->cell('BR' . $incremantal, function ($cell) use ($proyecto) {
+                $sheet->cell('BS' . $incremantal, function ($cell) use ($proyecto) {
                     $cell->setValue($proyecto->proyecto->dane['tx_subclase']);
                 });
 
             }
-            // ud
+            // ud (antes BS, ahora BT)
             if ($id_anualizacion > 1 || $isNewVersion) {
-                $sheet->cell('BS' . $incremantal, function ($cell) use ($proyecto) {
+                $sheet->cell('BT' . $incremantal, function ($cell) use ($proyecto) {
                     $cell->setValue($proyecto->proyecto->dane['vc_unidad']);
                 });
             }
-            // ciiu
+            // ciiu (antes BT, ahora BU)
             if ($id_anualizacion > 1 || $isNewVersion) {
-                $sheet->cell('BT' . $incremantal, function ($cell) use ($proyecto) {
+                $sheet->cell('BU' . $incremantal, function ($cell) use ($proyecto) {
                     $cell->setValue($proyecto->proyecto->dane['vc_ciiu']);
                 });
             }
-            // Beneficiario
+            // Beneficiario (antes BU, ahora BV)
             if ($id_anualizacion > 1 || $isNewVersion) {
-                $sheet->cell('BU' . $incremantal, function ($cell) use ($beneficiario) {
+                $sheet->cell('BV' . $incremantal, function ($cell) use ($beneficiario) {
                     $cell->setValue(($beneficiario) ? $beneficiario : '');
                 });
             }
-            //identificacion Beneficiario
+            //identificacion Beneficiario (antes BV, ahora BW)
             if ($id_anualizacion > 1 || $isNewVersion) {
-                $sheet->cell('BV' . $incremantal, function ($cell) use ($doc_beneficiario) {
+                $sheet->cell('BW' . $incremantal, function ($cell) use ($doc_beneficiario) {
                     $cell->setValue(($doc_beneficiario) ? $doc_beneficiario : '');
                 });
             }
-            //num contrato
+            //num contrato (antes BW, ahora BX)
             if ($id_anualizacion > 1 || $isNewVersion) {
-                $sheet->cell('BW' . $incremantal, function ($cell) use ($num_contrato) {
+                $sheet->cell('BX' . $incremantal, function ($cell) use ($num_contrato) {
                     $cell->setValue(($num_contrato) ? $num_contrato : '');
                 });
             }
-            // estado solictud CDP
-            $sheet->cell('BX' . $incremantal, function ($cell) use ($plan_anual) {
+            // estado solictud CDP (antes BX, ahora BY)
+            $sheet->cell('BY' . $incremantal, function ($cell) use ($plan_anual) {
 
                 $cell->setBackground('#DEFCA8');
                 $estado = 'Generado';
diff --git a/public/assets/formatos/reporte_plan_contratacion_2026.xlsx b/public/assets/formatos/reporte_plan_contratacion_2026.xlsx
new file mode 100644
index 000000000..f3def8e59
Binary files /dev/null and b/public/assets/formatos/reporte_plan_contratacion_2026.xlsx differ
